// (C) Copyright to Kevin. Applied to MIT LICENSE

#pragma once

#include "CoreMinimal.h"

#include "Blocks/Block.h"

/**
 * 
 */
class BLOCKWORLD_API BlockManager
{
private:
	TMap<uint16, Block*>* block_register = NULL;

	static BlockManager* instance;

public:
	BlockManager();
	~BlockManager();

	void Initialize();

	void Register(uint16 id, Block* block);

	Block* Find(uint16 id);

	static BlockManager* GetInstance();

};
